我試著處理這種情況。我有結(jié)果表。直到現(xiàn)在我使用 ->orderBy('final') 但我發(fā)現(xiàn)當(dāng)我有相同的最后時(shí)間時(shí)它不起作用。 Left time | Right time | Final0 24:45 24:22 24:451 24:85 21:84 24:852 24:44 25:12 25:123 25:12 21:78 25:124 38:12 25:99 38:12問題是當(dāng)我有像索引 [2],[3] 這樣的最終時(shí)間時(shí),當(dāng)我想檢查更好的時(shí)間Left time或Right time并再次對它們進(jìn)行排序時(shí)。所以最后它必須看起來像(索引 2、3 開關(guān)) Left time | Right time | Final0 24:45 24:22 24:451 24:85 21:84 24:852 25:12 21:78 25:123 24:44 25:12 25:124 38:12 25:99 38:12
PHP Laravel 按最終時(shí)間和更好時(shí)間自定義排序
慕無忌1623718
2022-12-23 16:03:41