Python Sort Array By Columns For Porches