request_queue: support sorting and hashing of queue elements