keep an internal list of deleted records
add sort to statemanager
Merge pull request #57 from skinnybrit51/FEATURE/state-manager-sort

FEATURE/state-manager-sort