add multiSort function, begin work on api access