added quick update to order function. Now add sorting options as two strings, nArgs of arrays and nArgs of Objects