Finally got sorting to work correctly when new items are added!!