Use nested_filters for sorting apps depending on collection order (bug 951626)

https://bugzilla.mozilla.org/show_bug.cgi?id=951626