Fix for packages not being correctly sorted within sections in main index