Fixed bug where files were sometimes not added or removed correctly.
Implemented natural sort ordering.