Fix: [ bug #1757 ] Sorting breaks product/service statistics

Fix: [ bug #1757 ] Sorting breaks product/service statistics