Updated Habit model to include sort field.