Updated for RabbitMQ 3.0.1 (ships with web stomp plugin).
Fixed to sort messages using index's sort.