diff --git a/src/stores/useDataStore/index.ts b/src/stores/useDataStore/index.ts index 2dfb79131..ffa0c3b21 100644 --- a/src/stores/useDataStore/index.ts +++ b/src/stores/useDataStore/index.ts @@ -186,6 +186,7 @@ export const useDataStore = create()( ...(filterNodeTypes.length > 0 ? { node_type: JSON.stringify(filterNodeTypes) } : {}), ...(word ? { word } : {}), ...(aiRefId && AISearchQuery ? { previous_search_ref_id: aiRefId } : {}), + ...(!word && !AISearchQuery ? { sort_by: 'date_added_to_graph' } : {}), } try {