fix sort pinned