add filtering and customizable sorting to SQS priority queue, add some tests