Sort user columns

In the User admin list, I see the s2Member adds sorting for the EOT and Registration meta columns. How can I use that same functionality for other meta data? Anyone know what file in s2Member has that functionality, so I can take a look at it and try to figure it out?