store sorted entitys in batch - could be slightly quicker with timsort