workaround for V8's 'broken' sorting algorithm, see #36