Added loaded data sorting