Sort on a custom metadata field

mo
mogandbunny
Posts: 54
Joined: Tue Jan 03, 2012 6:39 pm
Platform: Mac
Location: Herefordshire

Thu Jun 13, 2019 6:30 am Post

I have a date field. It would be very useful to be able to sort dates.
Currently the only way I can think of to sort entries by date is cumbersome. Prefix each entry with the date and sort on title.

br
brookter
Posts: 1819
Joined: Wed Mar 18, 2009 12:22 pm
Platform: Mac

Thu Jun 13, 2019 8:07 am Post

Which version of Scrivener do you have?

You can do this in Version 3, as long as your date field is a proper 'date' type. All you need to do is to add your date field ('Birthday') to the Outline view (View > Outliner Options > Birthday, or click on the chevron in the right of the header bar) then click on the Birthday header and it will cycle through the options in the normal way. (I've cut the fields down for simplicity, but obviously that's not necessary for this).

Screenshot 2019-06-13 08.52.10.png
Screenshot 2019-06-13 08.52.10.png (89.6 KiB) Viewed 101 times


If that's enough for you, then you're done, but if you want the new order to be reflected in the binder, the simply select all the documents in that outline view (not the binder) and drag them to the binder -- make sure that the insertion point is just below the name of the group and clearly indented. This will reorder the items to reflect your new sorting.

HTH.

mo
mogandbunny
Posts: 54
Joined: Tue Jan 03, 2012 6:39 pm
Platform: Mac
Location: Herefordshire

Thu Jun 13, 2019 8:53 am Post

Very helpful, thank you.
(I do have S3 v1.2)