sortPackages method

void sortPackages()

Sort the packages using some comparison method, or by the default manner, which is to put the application package first, followed by every other package in case-insensitive alphabetical order.

Implementation

void sortPackages() {
  packages.sort();
}