Sort:  

In regards to the coding you would have to ask @inertia. I'm only using his great bot ;)