added js native and insert sorts