removed inline from sort