Historic commit for v0.1: sorting algorithm works for Instant queue only.