Rearrange squid resources

so that they write into the file in the correct order.

This still has a tiny problem. It will not rearrange the order
of entries that are already incorrectly ordered.