you should not sort in UI thread since it might be long-running operation