Re: [BillKSmith] String of code wont run properly, did a -c and the syntax was okay
[In reply to]

Can't Post

This tutorial book i have taught me how to sort by keys alphabetically and numerically, and by values numerically. But there was no examples on how to sort by values alphabetically, so i tried to improvise!! :/

In order to print both, you must sort the keys. You sort them such that the corresponding values are in alphabetical order. This is exactly what your original function "values_sort" does if you use it to sort the keys. You print the keys with corresponding values in this order.