Fixed error sorting pieces with last name