Sorting by field -> value pairs