why pivot table not sorting?
Refresh the pivot table. If the field which has items from a custom list is set for Automatic sort, it should change to the custom list's sort order. If the field is currently set for manual sorting, it won't sort according to the custom list order.