Feature sorting and filtering for atlas generation

Includes unit tests, SIP bindings and python unit tests