I have an Age column that is a string (i.e. "5 Days") which is a computed property based on the DateCreated field in the database.
I added a SortProperty to the Age column in the datagrid and set it to "DateCreated", which works as expected when I click the column name, except when I click the name a second time to reverse the sort, it stays sorted the same.
Looking at the Odata query, for sorting the first time, the request looks like this:
"$top=25&$skip=0&$orderby=DateCreated desc&$count=true"
but when sorting the second time (reverse) the request looks the same:
"$top=25&$skip=0&$orderby=DateCreated desc&$count=true"
when it should say 'asc'.
Is this a bug, or do I need to specify the different sort options somewhere?