Spaces:
Sleeping
Sleeping
bartman081523
commited on
Commit
·
7e7f190
1
Parent(s):
26e6a7b
order results by book number
Browse files
app.py
CHANGED
@@ -190,7 +190,7 @@ def gematria_search_interface(phrase):
|
|
190 |
return "No matching phrases found."
|
191 |
|
192 |
# Sort results by book, chapter, and verse
|
193 |
-
sorted_phrases = sorted(matching_phrases, key=lambda x: (x[1], x[2], x[3]))
|
194 |
|
195 |
# Group results by book
|
196 |
results_by_book = defaultdict(list)
|
|
|
190 |
return "No matching phrases found."
|
191 |
|
192 |
# Sort results by book, chapter, and verse
|
193 |
+
sorted_phrases = sorted(matching_phrases, key=lambda x: (int(list(book_names.keys())[list(book_names.values()).index(x[1])]), x[2], x[3]))
|
194 |
|
195 |
# Group results by book
|
196 |
results_by_book = defaultdict(list)
|