Add missing compare for sort function.
Correct erroneous comments
Fix test to work correctly.  It was relying on a bug in the list function
that was fixed in f1c74d6ec158b1b9e32a12577d0c348941c7c775