wasm-sort
v0.0.5
Published
Some sort algorithm in WebAssembly.
Downloads
5
Readme
WebAssembly sort algorithm compiled by C.
Use
import algorithm from './index.js';
import {sortModel} from './index.js';
var {bubbleSort} = await algorithm();
// The second param is sort model. sortModel.asc, sortModel.desc.
console.log(bubbleSort([3124,246,1,23,6,7],sortModel.asc));
Currently, Only have bubble sort.