use layout to sort display