Skip to main content
CSS-Tricks
  • Articles
  • Notes
  • Links
  • Guides
  • Almanac
  • Picks
  • Shuffle
Search

Articles Tagged
sorting

2 Articles
{
,

}
Direct link to the article Level up your .sort game
JavaScript sorting

Level up your .sort game

Sorting is a super handy JavaScript method that can display the values of an array in a certain order. Whether that’s real estate listings by price, burger joints by distance, or best nearby happy hours by rating, sorting arrays of …

Adam Giese on Jun 10, 2019 Updated on Jul 8, 2019
Direct link to the article Alphabetizing Arrays, Objects, and Arrays of Objects
arrays objects sorting

Alphabetizing Arrays, Objects, and Arrays of Objects

Alphabetizing can be a little tricky, as you might want to be case-insensitive with what you are sorting. Also, arrays are the thing that you sort, but sometimes you have an object. Or an array of objects. Or otherwise nested combinations...
Chris Coyier on Apr 18, 2018

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top