diff --git a/src/mainwindow.c b/src/mainwindow.c index da78d2d..dfd8a5d 100644 --- a/src/mainwindow.c +++ b/src/mainwindow.c @@ -141,8 +141,8 @@ static void mainWindow_configure_treeView(struct mainWindow *mainWindow) "text", COL_DATE_TEXT, NULL); col = gtk_tree_view_get_column(mainWindow->entryListView, COL_DATE_TEXT); gtk_tree_view_column_set_resizable(col, 1); - gtk_tree_sortable_set_sort_func(sortable, COL_TIMESTAMP, mainWindow_sort_date_compare_func, - GINT_TO_POINTER(COL_TIMESTAMP), NULL); + gtk_tree_sortable_set_sort_func(sortable, COL_DATE_TEXT, mainWindow_sort_date_compare_func, + GINT_TO_POINTER(COL_DATE_TEXT), NULL); gtk_tree_view_column_set_sort_column_id(col, COL_DATE_TEXT); renderer = gtk_cell_renderer_text_new();