fix: ensure books display in biblical order (Old Testament → New Testament)

- Modified offline storage to sort books by orderNum after IndexedDB retrieval
- Fixed book ordering issue where books appeared out of sequence
- Books now consistently display: Genesis → Revelation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-30 12:00:08 +00:00
parent 2a031cdf76
commit fa72c992f4
2 changed files with 5 additions and 3 deletions

View File

@@ -158,14 +158,14 @@ export default function BibleReaderNew({ initialVersion, initialBook, initialCha
if (key === 'version') return initialVersion || null
if (key === 'book') return initialBook || null
if (key === 'chapter') return initialChapter || null
if (key === 'verse') return searchParams.get('verse') // Still get verse from URL query params
if (key === 'verse' && typeof window !== 'undefined') return searchParams.get('verse') // Only on client
return null
},
has: (key: string) => {
if (key === 'version') return !!initialVersion
if (key === 'book') return !!initialBook
if (key === 'chapter') return !!initialChapter
if (key === 'verse') return searchParams.has('verse')
if (key === 'verse' && typeof window !== 'undefined') return searchParams.has('verse') // Only on client
return false
},
toString: (): string => ''