Added implicit sorting of lists and borders