Also true, but that illustrates the different hidden criteria behind coding. It would require writing more lines of code, the real intention would not be so obvious (because the sorted list is in fact not needed) and would take much more execution time (because sorting is not linear with the number of items being sorted).
On the other hand, if the list being sorted was of a value-key pair, the key could be used to tag each value with the identity of the originating variable. Thus the identity of the highest and lowest values would then be available...