Add a new feature to sort associative arrays

Sort associative arrays by keys to make finding items easier.