sort valid to the top