Sort list of apps to copy settings from.

Fixed version of https://github.com/errbit/errbit/pull/464