Laravel Sort Array Of Strings Python