updated xSortBy example