improving the sorting for closed bugs