Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Ask Reuben 177 - Sort Comparison Function  (Read 4393 times)
Reuben B.
Four Js
Posts: 1116


« 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/

Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines