From 72afabbd03082643ed67b52d3670ac60f6445f02 Mon Sep 17 00:00:00 2001 From: Bill Fienberg Date: Thu, 24 May 2018 17:25:57 -0500 Subject: [PATCH] Fix README: `defaultSortMethod` doesn't match code (#910) Updating the `defaultSortMethod` in the README to match the [code](https://github.com/react-tools/react-table/blob/3a8a037ee68b11e329c581a8d61a37db276a0dbf/src/defaultProps.js#L46) --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d5831fe..ae47e0f 100644 --- a/README.md +++ b/README.md @@ -214,11 +214,11 @@ These are all of the available props (and their default values) for the main ` { // force null and undefined to the bottom - a = (a === null || a === undefined) ? -Infinity : a - b = (b === null || b === undefined) ? -Infinity : b + a = a === null || a === undefined ? '' : a + b = b === null || b === undefined ? '' : b // force any string values to lowercase - a = a === 'string' ? a.toLowerCase() : a - b = b === 'string' ? b.toLowerCase() : b + a = typeof a === 'string' ? a.toLowerCase() : a + b = typeof b === 'string' ? b.toLowerCase() : b // Return either 1 or -1 to indicate a sort priority if (a > b) { return 1 @@ -226,7 +226,8 @@ These are all of the available props (and their default values) for the main `  , // the content rendered inside of a padding row