public boolean onCommand(CommandSender sender, String[] args) {
		// get the groups
		PermissionGroup[] groups = plugin.permissions.getGroups();
		
		// create a comparator
		Comparator<PermissionGroup> rankComparator = new RankComparator();
		// and sort the groups
		Arrays.sort(groups, rankComparator);
		
		// print out the ranks
		String ranks = "&fRanks in order of least to greatest: ";
		for(int i = 0; i < groups.length - 1; i++) {
			// exclude unranked groups
			if(groups[i].getOptionInteger("rank", "", 9999) != 9999) {
				ranks += groups[i].getPrefix() + groups[i].getName() + "&f, ";				
			}
		}
		// don't add a comma to the last one
		if(groups.length > 0) {
			ranks += groups[groups.length - 1].getPrefix() + groups[groups.length - 1].getName();
		}
		// and send!
		MCNSARanksCommandExecutor.returnMessage(sender, ranks);
		
		return true;
	}