Simplifying Widget Queries in Reimpact/platform
When developing widgets in Reimpact/platform, efficiency is key. A recent update addresses an issue with Filament's default sorting behavior in subqueries, specifically within the TopExceptionsWidget. Let's explore the problem and the solution.
The Problem
Filament, a PHP framework, automatically applies ORDER BY model.id when using HasRecords. This default behavior becomes problematic