Sort nil to upper end of table