ensure sorting in dist