MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / sort

Method sort

out/cli.cjs:4851–4862  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4849 this._updateSteps();
4850 }
4851 sort() {
4852 this._list.sort((a4, b7) => {
4853 if (a4[0] < b7[0]) {
4854 return -1;
4855 }
4856 if (a4[0] > b7[0]) {
4857 return 1;
4858 }
4859 return 0;
4860 });
4861 this._updateSteps();
4862 }
4863 [Symbol.iterator]() {
4864 return this._list[Symbol.iterator]();
4865 }

Callers

nothing calls this directly

Calls 2

_updateStepsMethod · 0.95
sortMethod · 0.45

Tested by

no test coverage detected