Skip to content

Instantly share code, notes, and snippets.

@benaubin
Last active December 12, 2017 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benaubin/b8f409a11dd902c2da327b2ad8000de6 to your computer and use it in GitHub Desktop.
Save benaubin/b8f409a11dd902c2da327b2ad8000de6 to your computer and use it in GitHub Desktop.
Alphabetizing your Bibliography: Because it sucks and Scienteer doesn't do it for you.

Put this link in your browser's address bar on the Scienteer Bibliography page. It'll alphabetize everything for you. Fancy 😃

javascript:var%20alphabetizedBib=jQuery(".newQuestionText").map(function(){return%20$(this).text()}).sort();jQuery(".newQuestionText").each(function(i){$(this).text(alphabetizedBib[i])});

If it doesn't work, paste it in then make sure that the javascript: part is before the code. Chrome hates its life has some nice security features so sometimes it decides to be terrible remove that important part (it's what tells the browser that the code is actually code and not some place you want to go).

var alphabetizedBib = jQuery(".newQuestionText").map(function(){ return $(this).text() }).sort();
jQuery(".newQuestionText").each(function(i){$(this).text(alphabetizedBib[i])});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment