fix payment refund, and add a test too
fix sort order of competitions in event