JS sorting of beers