Fix for #51. orderBy() now handles index parameters correctly.