old csv sort script from a while ago