Sort sessions on save.