Sort:  

Simply tracking it is not hard. Sorting and storing the data in a meaningful way is more complicated and requires some database design... and that stuff gets over my head.