Fixes #328. Provides a fix for issue where items not in sort are left ou...

...t