Title: Ask Reuben 177 - Sort Comparison Function Post by: Reuben B. on May 12, 2023, 12:45:55 pm When you look around other applications a question you should ask yourself is how would I implement that in a Genero application?
One such question arises from programs like Windows Explorer, Mac OSX Finder. If you note the file size column, the size is simplified so that instead of saying 2000 or 1000000, it might say 2K, 1M. When you click on the column header, it still sorts correctly, that is 2K < 1M You may also see something similar in the app you use for your music and movies. Is "The Beatles" sorted as if it begins with T or B? Is "The Lord of the Rings" sorted as if it began with T or L? If your program displays clothing sizes, do they sort XXS XS S M L XL XXL ? In a recent Genero maintenance release, functionality was added so that you can control the sort comparison function used. This is in the form of two new methods. Read more at https://4js.com/ask-reuben/ig-177/ |