Order pins properly