bug in customer controller sorting method