Doing QOS sort only once