<div dir="ltr"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">open parses the json file into a python dictionary.  Currently the format of your json will produce a dictionary with one key 'pubs' and a value formatted as a python list of nested dictionaries.</span><br><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"></span><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br>The for loop targets the list inside the main dictionary and first converts the date to a python date object.<br><br></span> <span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Then simply use the sorted method with a lambda expression to sort the order of dictionaries by the newly created date objects.</span></div><div><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br></span></div><div><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">Yur initial date values are integers.  You will need to either store them in the json object as strings or convert them so that datetime.strptime() can parse them</span><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">.</span></span></div><div><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)"><br></span></span></div><div><span style="color:rgb(11,83,148);font-family:arial,helvetica,sans-serif"><span class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(11,83,148)">I'm sure there are other ways to do this but this was the fastest given the json format.</span></span></div></div><br><div class="gmail_quote">I want to be able to display items in order. Mostly chronological, but<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
also by other details.<br>
<br>
Any suggestions for how to sort them for display?<br>
<br>
A nice, but not required, feature would be sorting them for saving to disk<br>
as well.<br>
<br>
ciao,<br>
<br></div>
der.hans<br></blockquote></div></blockquote></div><div>-- <br></div><div><br></div><div>definitely use multiple search indexes. If the search is vague for publication but occurred with in some time range, you would need to search the entire file to be sure that you didn't have it, and also complete the other searches faster. <br></div><div><br></div><div>Display possibility is to list the current name and publication in the center, then any newer papers above their current entry and older articles bellow. The next name with just the name on the main line, and then a abbreviated publication name, date, and on the line just below it the first 3 or 4 significant words in the article title, then 2 blank lines to make the current name stand out. For authors with few papers in that time period leave blanks spots, for authors with lots of publications shrink the space between to only 1. Use the four arrow keys to make short moves, type in partial names for a list of possible matching items.</div><div><br></div><div dir="ltr">Have you considered value added? For instance, add one or more fields for subject matter, quality of added data.</div><div dir="ltr"><br></div><div>I would also recommend storing the data (plus reference link) locally. Data on the web as a tendency to keep moving or disappearing altogether. <br></div><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:11pt">"Creativity is intelligence having fun." — Albert Einstein</span></div><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:11pt"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:11pt">Misha<br></span></div></div>