Update for inline history
 * Fixed the descending history
 * Simplified and fixed the sorting and comparing with bug notes