add sorted by function at the list view