JSFiddle - React, Tailwind, and code Playground

by imsky

HTML

<ul>
    <li><a href="http://graphics.cs.ucdavis.edu/~joy/ecs178/">UC Davis - ECS 178 - Introduction to Geometric Modeling - Ken Joy</a></li>
    <li><a href="https://graphics.stanford.edu/wikis/cs148-10-fall/FrontPage">Stanford - CS148 - Introduction to Computer Graphics and Imaging - Hanrahan</a></li>
    <li><a href="http://www-inst.eecs.berkeley.edu/~cs184/sp12/">Berkeley - CS 184 - Foundations of Computer Graphics - Ramamoorthi</a></li>
    <li><a href="http://www.cs.virginia.edu/~gfx/Courses/2004/Intro.Fall.04/">Virginia, University of - CS445 - Intro Graphics - Humphreys</a></li>
    <li><a href="http://www.cs.cmu.edu/afs/cs/academic/class/15869-f11/www/">Carnegie Mellon University - CMU 15-869 - Graphics and Imaging Architectures - Fatahalian</a></li>
    <li><a href="https://graphics.stanford.edu/wikis/cs248-12-winter/CS_248%3A_Interactive_Computer_Graphics">Stanford - CS 248 - Interactive Computer Graphics - Koltun</a></li>
    <li><a href="http://www.graphics.stanford.edu/courses/cs448a-01-fall/">Stanford - CS448A - Real-Time Graphics Architectures - Akeley and Hanrahan</a></li>
    <li><a href="http://graphics.stanford.edu/courses/cs348a-12-winter/">Stanford - CS348a - Computer Graphics: Geometric Modeling - Guibas</a></li>
    <li><a href="https://graphics.stanford.edu/wikis/cs348b-11/">Stanford - CS348b - Image Synthesis - Hanrahan</a></li>
    <li><a href="http://graphics.stanford.edu/courses/cs164-09-spring/">Stanford - CS164 - Computing with Physical Objects: Algorithms for Shape and Motion - Guibas</a></li>
    <li><a href="http://graphics.stanford.edu/courses/cs268-11-spring/">Stanford - CS268 - Geometric Algorithms - Guibas</a></li>
    <li><a href="http://cs.brown.edu/courses/cs224/index.shtml">Brown - CS 224 - Interactive Computer Graphics - Hughes</a></li>
    <li><a href="http://www.cs.dartmouth.edu/~cs77">Dartmouth - CS77 - Computer Graphics - Denning</a></li>
    <li><a href="http://www-bcf.usc.edu/~jbarbic/cs480-s12/">University of...

JavaScript

var items = $("ul li");

items.sort(function(a,b){
    var x = $(a).text();
    var y = $(b).text();
    var z = [x,y].sort();
    return y==x?0:(z[0]==y?1:-1);
});

$("ul").append(items);