moved sorting in to Hibachi core