fix for issues#5: Sorting does not update models