Add a shitty required parameter
Add json handling, type param explicitly
Return the quicksorted list as json now.