WD2: add const, add return value
all func return value&&sorted