Fix sorting

Sorting on some properties was broken due to the backend changes.