MCPcopy Create free account
hub / github.com/bjsi/incremental-everything / handleSort

Function handleSort

src/widgets/batch_priority.tsx:778–785  ·  view source on GitHub ↗
(field: SortField)

Source from the content-addressed store, hash-verified

776 return parentIndex >= 0 && parentIndex < r.pathIds.length - 1;
777 });
778 };
779
780 // Handle sorting
781 const handleSort = (field: SortField) => {
782 if (sortField === field) {
783 setSortDirection(prev => prev === 'asc' ? 'desc' : 'asc');
784 } else {
785 setSortField(field);
786 setSortDirection('asc');
787 }
788 };

Callers 1

BatchPriorityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected