I have been tasked to update the sort for a gallery.
It is currently sorted by the modified date to show the most recently modified items first. Each item has the name of a developer in it and I have been asked to sort like this:
- By Developer with the logged in developer's items shown first
- By Modified date, with the most recent to oldest
I have the second part, but am not sure how to implement the first part. All items will be shown but the logged in Developer's items should be shown first from most recent to oldest.
Example:
Example:
Developers:
Bill Gates
Steve Jobs
Jeff Bezos
Currently logged in developer Jeff Bezos
Items:
Jeff Bezos 7/5/2020
Jeff Bezos 7/1/2020
Jeff Bezos 6/3/2020
Bill Gates 6/24/2020
Bill Gates 5/15/2020
Steve Jobs 7/2/2020
Steve Jobs 4/28/2020
Steve Jobs 4/2/2020
Currently logged in Developer Steve Jobs:
Steve Jobs 7/2/2020
Steve Jobs 4/28/2020
Steve Jobs 4/2/2020
Bill Gates 6/24/2020
Bill Gates 5/15/2020
Jeff Bezos 7/5/2020
Jeff Bezos 7/1/2020
Jeff Bezos 6/3/2020