Browse Source

pre-sort by title to take advantange of stable sort; watch for null date

master
David Ashby 4 years ago
parent
commit
1842828ec6
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      index.html
  2. +1
    -1
      index.js

+ 1
- 0
index.html View File

@ -29,6 +29,7 @@
}
function renderTable(data, sortField) {
data = _.sortBy(data, 'title');
data = _.sortBy(data, sortField);
$.each(data, function(key, value) {


+ 1
- 1
index.js View File

@ -142,7 +142,7 @@ function normalizeGoogleData(book) {
publisher: _.trim(book.publisher, '"'),
series: '',
volume: '',
publishedDate: book.publishedDate.substring(0, 4),
publishedDate: book.publishedDate ? book.publishedDate.substring(0, 4) : '',
coverurl: '',
description: book.description,
notes: '',


Loading…
Cancel
Save