Skip to content

A sorter for scoreboards for the official cDiep client to digest easily.

Notifications You must be signed in to change notification settings

CommunityDiep/score-sort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

score-sort Build Status

A sorter for scoreboards for the official cDiep client to digest easily.

Test Cases

Here's a test case that tests depth (up to ten-thousandths' place) and sorting:

sort({
	'hi': {
		score: 1250,
		name: 'Hello 1'
	},
	'hi2': {
		score: 2512,
		name: 'Hello 2'
	}
}, 2);

This should return:

[[
  'Hello 2 - 2.51k',
  1
], [
  'Hello 1 - 1.25k',
  0.49761146496815284
]]