Comments (3)
Also, sort by custom comparison function.
from citation.js.
Now implemented. Will push as soon as DOI is fixed and test cases and docs are ready. Syntax as above:
Regular:
const data = Cite(...)
data.sort(['author', 'year', 'title'])
Sort author reversed:
const data = Cite(...)
data.sort(['!author'])
Custom callback (same as callback for Array#sort()
):
const data = Cite(...)
data.sort((objA, objB) => Math.sign(Math.random() - .5))
from citation.js.
Closed in e528dc9
from citation.js.
Related Issues (20)
- Error processing doi HOT 2
- `$` in entry causes fatal error HOT 2
- File size limit? HOT 4
- Add CODE_OF_CONDUCT.md to the project HOT 4
- [format BibTeX] proceedings-article from crossref data all formated to @misc HOT 2
- Add support for `dataset` of BibLaTeX HOT 3
- RIS input - publishing place not returned for type book HOT 3
- RIS Input - Missing "issue" for type magazine HOT 4
- exception when trying to add locale HOT 4
- larsgw/citation.js vs citation-js/citation-js
- What does citation JS use to escape citation data before turning it into html? HOT 2
- TypeError: Cannot read properties of undefined (reading 'config')
- Formatting bibliography HOT 3
- React.js? HOT 1
- how to format 'in press' articles? HOT 2
- Include DOI in exported BibTeX? HOT 1
- MLA In-Text Citations HOT 3
- Converting bibtex to json doesn't preserve abstract HOT 1
- Wikidata plugin depends on a deprecated package HOT 3
- JSON to BibLatex HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citation.js.