sort is working