Skip to content

issues Search Results · repo:75lb/sort-array language:JavaScript

Filter by

11 results
 (68 ms)

11 results

in75lb/sort-array (press backspace or delete to remove)

Sorting of this failed: var ar = [[99, a ], [1, a ]]; sortArray(ar, {by:[1,0]}); I changed this line if (result === 0 by[byIndex + 1]) { to this if (result === 0 (undefined !== by[byIndex + 1])) ...
  • HolgerSchulz
  • 1
  • Opened 
    on Feb 5, 2022
  • #16

Need a options.NaNrank option - same functionality as options.undefinedRank and options.nullRank but for NaN values.
enhancement
good first issue
  • 75lb
  • Opened 
    on Sep 5, 2021
  • #15

Low priority but would be nice to have some input validation which ensures the config supplied is valid. E.g. ensure a customOrder is either a function or array of values. The following is invalid and ...
enhancement
good first issue
  • 75lb
  • Opened 
    on Sep 5, 2021
  • #14

Update customOrders to also accept a standard sort compare function. E.g. sortArray(partsOfTheDay, { order: time , customOrders: { time: (a, b) = return a b ? 1 : -1 // etc } })
enhancement
  • 75lb
  • Opened 
    on Sep 5, 2021
  • #13

I needed to sort a list by string ex: all items with the property source if it equals to Unlinked it should drop to the end of the list if it doesn t equals to Unlinked it should be shifted to start of ...
  • eladonline
  • 2
  • Opened 
    on Dec 17, 2020
  • #11

Just found out about this library, great job! reading the code, the sort happens in-place. It would be nice if I could leave the original array as is, and get a new sorted array
  • chiptus
  • 1
  • Opened 
    on Nov 17, 2020
  • #10

I m using sortArray with an array that contains null values in field. sortArray(myArray, {by: [ fieldA ,fieldB ]}) fieldA contains two values, null and the number 1 . Regardless of how I sort the array ...
  • BrianT71
  • 1
  • Opened 
    on Jun 15, 2020
  • #9

For example const fixture = [ { a: 5, b: 10 }, { a: 2, b: 10 }, { a: 3, b: 10 }, { a: 1, b: 10 }, { a: 4, b: 10 } ] const by = [ item = item.a + item.b ] /* Sorts recordset by the result ...
  • 75lb
  • 1
  • Opened 
    on Nov 25, 2018
  • #7

For example. const records = [ { a: 4, b: 1, c: 1 }, { a: 4, b: 3, c: 1 }, { a: 2, b: 2, c: 3 }, { a: 2, b: 2, c: 2 }, { a: 1, b: 3, c: 4 } ] sort(records, [ [ a , desc ], [ b , asc ...
  • 75lb
  • 1
  • Opened 
    on Nov 25, 2018
  • #6

So I have a JSON in the format { homepage_card.title :{ type : StructuredText , value :[{ type : heading1 , text : Test Card , spans :[]}]}, homepage_card.type :{ type : Select , value : default }, homepage_card.sequence ...
enhancement
  • saurabhmahajan0077
  • 2
  • Opened 
    on Oct 19, 2017
  • #5
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Restrict your search to the title by using the in:title qualifier.
Issue search results · GitHub