rendering queue sorting for optimization : some bugs fixes