sort changed to reverse