Python Http Post Json Javascript Array Sort Function In Python