bugfix: sort on saving