JSPM

srirag-sort

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q17786F
  • License ISC

A simple npm package to sort the arrays into ascending or descending order

Package Exports

  • srirag-sort
  • srirag-sort/sort.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (srirag-sort) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

srirag-sort

A simple sorting package that provides a bubble sort implementation in JavaScript. You can sort arrays in both ascending and descending order.

Installation

You can install the package using npm:

npm install srirag-sort

Function signature

sort(arr, key);

Keys:

0: Sort in ascending order.

1: Sort in descending order.