Sort:  

in terms of code, it shouldn't be difficult to do it. what I'm not sure is how to 'table' or categorize it. if you have any ideas of how a table with your specifications should look like, please let me know.