Skip to content

Commit

Permalink
fix(Sort Method): Fix possibility to get errors on sorted object
Browse files Browse the repository at this point in the history
Replace the words saved in an object by saving them in an array

BREAKING CHANGE: getSorted method now returns an array, not an object. Please read  the
documentation.

#4
  • Loading branch information
proustibat committed Oct 13, 2017
1 parent 3c77748 commit cf1a98d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -107,16 +107,16 @@ longest: ['connected']
smallest: [ 'not', 'bad', 'but' ]
lessUsed: [ 'connected', 'good', 'bad', 'dunno', 'but', 'know', 'it\'s' ]
mostUsed: ['power']
getSorted: { power: 4,
what: 3,
not: 2,
connected: 1,
good: 1,
bad: 1,
dunno: 1,
but: 1,
know: 1,
'it\'s': 1 }
getSorted: [ { value: 'power', number: 4 },
{ value: 'what', number: 3 },
{ value: 'not', number: 2 },
{ value: 'connected', number: 1 },
{ value: 'good', number: 1 },
{ value: 'bad', number: 1 },
{ value: 'dunno', number: 1 },
{ value: 'but', number: 1 },
{ value: 'know', number: 1 },
{ value: 'it\'s', number: 1 } ]
```

### Example with hebrew alphabet
Expand Down

0 comments on commit cf1a98d

Please sign in to comment.