Now the queried lists from the DB are sorted in a meaningful way.