Fix: heterogeneous type for user key caused sort error