ticket:13 sort requests with tests