Adding sorting interface.