diff --git a/Photos-version-4-database.md b/Photos-version-4-database.md index 9ffcce0..a2e08a9 100644 --- a/Photos-version-4-database.md +++ b/Photos-version-4-database.md @@ -1 +1,15 @@ -The full schema for Photos 4 databases can be found [here](https://github.com/RhetTbull/osxphotos/wiki/Photos-4-database-schema). \ No newline at end of file +The full schema for Photos 4 databases can be found [here](https://github.com/RhetTbull/osxphotos/wiki/Photos-4-database-schema). + +### Albums + +#### Album Sort Order +Sort order of photos in albums is not yet supported by `osxphotos`. The sort order appears to be in table `RKCustomSortOrder`. + +The highlighted rows in screenshot below show 4 photos in an album with default sort order. Note the `orderNumber` column uses a similar scheme as in Catalina (start at 1024 and increment by 2^10). `containerUuid` is the album UUID (`RKAlbum.uuid`) and `objectUuid` is the photo UUID (`RKVersion.uuid`). + +Screen Shot 2020-07-06 at 12 33 19 AM + +In screenshot below, I manually re-sorted the images, moving the last image (uuid = 6bxcNnzRQKGnK4uPrCJ9UQ) to the beginning of the album. Note it's `orderNumber` changed from 4096 to 1536, placing it first in the album. + +Screen Shot 2020-07-06 at 12 35 30 AM +