fix invoice sorting by package category, RT#31272