Description
Implement a sorted queue which can sort messages using specified message property predefined on queue creation.
The sorting performed is based on alphanumeric ascending string sort order and cannot be altered or overridden.
The attribute defined as the "qpid.queue_sort_key" for a queue should be present in the custom properties of the message sent i.e. a value stored by a call to Message.setStringProperty(myProperty, "abc123") and retrieved with Message.getStringProperty(myProperty).
The sort key value used must be of java type type String. JMS pre-defined properties can-not be used for sorting.
Messages sent to a Sorted Queue without the specified attribute provided should be added to the end of the queue.