implemented (again) result set ordering in GET handler