Sort defines.