sort by functions comments