Skip to main content
Inspiring
March 5, 2020
Answered

set order of photos in a collection

  • March 5, 2020
  • 2 replies
  • 1054 views

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?

 

 

This topic has been closed for replies.
Correct answer kimaldis

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

2 replies

johnrellis
Legend
March 5, 2020

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.]

kimaldisAuthorCorrect answer
Inspiring
March 5, 2020

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