Sort based in a key function

It allow me to sort based in multiple columns and is flexible to avoid dynamic columns creation just to sort my dataset.