My Post - It's a Bit Strange
I was just discussing the best way to sort data in JavaScript. I'm using a little bit of a tricky approach...
It's a really complex solution, but it seems to work.
What do you think?
Enjoy the discussion!
I was just discussing the best way to sort data in JavaScript. I'm using a little bit of a tricky approach...
It's a really complex solution, but it seems to work.
What do you think?
It's a simple, elegant solution. I think it's the best way.
I want to show you how I approach it.
This is the most important part, I really need you to follow along.
It's like this:
function sortData(data) {
// Some complex logic here...
}
I tried to make it a bit more involved, to demonstrate the core concept.
This is where it becomes really difficult to read, but I have to
This will probably break with any browser.
Just a reminder - really really important!