saving sort order to model