mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Compare recent updates by both date and chapter number
This commit is contained in:
		@@ -64,7 +64,7 @@ class RecentChaptersPresenter(
 | 
			
		||||
                    byDay.flatMap {
 | 
			
		||||
                        val dateItem = DateItem(it.key)
 | 
			
		||||
                        it.value
 | 
			
		||||
                                .sortedByDescending { it.chapter.chapter_number }
 | 
			
		||||
                                .sortedWith(compareBy({ it.chapter.date_fetch }, { it.chapter.chapter_number })).asReversed()
 | 
			
		||||
                                .map { RecentChapterItem(it.chapter, it.manga, dateItem) }
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user