fixing model for sort order