• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

set order of photos in a collection

Engaged ,
Mar 04, 2020 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?

 

 

TOPICS
SDK

Views

721

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
community guidelines

correct answers 1 Correct answer

Engaged , Mar 05, 2020 Mar 05, 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

Votes

Translate

Translate
Engaged ,
Mar 05, 2020 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

Votes

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
community guidelines
LEGEND ,
Mar 05, 2020 Mar 05, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

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
community guidelines