So I have pages created by metobjects, and am trying to create a page to index these with a bit of liquid code. All works fine - except it seems I can only sort on text fields where as I need to sort on a date eg I have created metaobjects with field "publication_date", i then sort that as follows:
I thought it might be to do with the Sort function not interpreting the Data type - so have tried adding a different field with the dates entered as an Integer without the dashes - but result is the same. If I sort on a text field it sorts that field alphabetically without any issues - just not numbers.
In case anyone has similar issue - it seems that sort() only works on text datatypes - adding a field of type "single line text", and entering the date without the number then the above gives the following expected result: