-
Notifications
You must be signed in to change notification settings - Fork 70
Conversation
honest-hrundel
commented
Nov 2, 2016
🍏 Пройдено тестов 15 из 15
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Для функции сортировки можно параметры называть a и b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
el не несет никакой семантики, лучше подойдет название вроде person
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Первый аргумент назвал newCollection, но ведь это не коллеция, а объект с информацией о человеке
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Снова el никак не отражает того, что лежит внутри (в общем везде el нужно поменять)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Зачем еще одну переменную создавать? Можно просто collection.sort()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Функция сравнения должна возвращать 1 (если first > second по некоторому критерию), 0 (если равны) и -1 (если меньше)
ninjagrizzly
commented
Nov 4, 2016
🍅
No description provided.