Highlighted

set order of photos in a collection

Participant ,
Mar 04, 2020

Copy link to clipboard

Copied

Is there a way, using the SDK, to order photos in a collection or other source. I can't find any reference to sort order in the SDK, can it actually be done?

 

 

Checking out John's Any Filter plugin, it looks like adding photos to a new collection is the way to go.

It would be nice to have more comprehensive sorting in LR though

Topics

How to, SDK

Views

288

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

set order of photos in a collection

Participant ,
Mar 04, 2020

Copy link to clipboard

Copied

Is there a way, using the SDK, to order photos in a collection or other source. I can't find any reference to sort order in the SDK, can it actually be done?

 

 

Checking out John's Any Filter plugin, it looks like adding photos to a new collection is the way to go.

It would be nice to have more comprehensive sorting in LR though

Topics

How to, SDK

Views

289

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 04, 2020 0
Participant ,
Mar 05, 2020

Copy link to clipboard

Copied

Checking out John's Any Filter plugin, it looks like adding photos to a new collection is the way to go.

It would be nice to have more comprehensive sorting in LR though

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 05, 2020 0
Most Valuable Participant ,
Mar 05, 2020

Copy link to clipboard

Copied

To build on Kimaldis' reply, the custom order of photos in a collection created from the SDK is the order in which photos are added to the collection. If you want to change the custom sort order of an existing collection, you'll have to delete all the photos from the collection and re-add them in the desired custom order. (That can be problematic with very large collections, since LR uses an inappropriate O(n^2) algorithm for deleting from a collection.)

 

The SDK doesn't allow a plugin to change the current ordering of the Library grid and the filmstrip, e.g. from View > Sort > Capture Time to View > Sort > File Name.  So if your plugin wants to present a custom order to the user, it should display a message with the do-not-display-again option, e.g. "Remember to do View > Sort > Custom Order".

 

[Use the reply button under the first post to ensure replies sort properly.]

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 05, 2020 0