sort @category by position