I have quite a lot of tasks (9000) , and sorting them takes a few seconds. I am pretty certain it can be done faster, how is it implemented?