C
C
coderisimo2016-05-20 02:05:30
JavaScript
coderisimo, 2016-05-20 02:05:30

Why doesn't sort work in chrome?

In fox everything is ok, but in chrome sorting does not work. Made a simple console example, for clarity.
I would be grateful for any hints.
fuck.jpg
link to big picture

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
coderisimo, 2016-05-20
@coderisimo

ha :
t.sort(function(a,b){ return +a.terms_prices[0].price - b.terms_prices[0].price;}); and this is how it works. )))))))
This is, apparently, the correct option. Strange that "wrong" worked in fox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question