Fix app ordering - ref owncloud/core#4324

cc @jancborchardt @karlitschek