Creating RankedComparator and using it to sort accounts.

Order of the accounts returned by MailAppProvider can
change even if list of the accounts doesn't change.
This cl should force the accounts to be ordered by
R.array.account_providers and then by order returned by
individual provider.

b/17339644

Change-Id: I7329a9e509a97573c04d3b407dc43ae74118325e
3 files changed