workaround for V8's 'broken' sorting algorithm

see issue #36