fixed credit invoice table not sorting