Sort elements in list view