I have a compact image-gallery app that already handles browsing well, but its current sorting is limited. I want to extend the functionality so users can reorder images by file size, ascending or descending, from within the existing interface. Here’s what I need from you: • Wire the new “Sort by Size” option into the current list/grid view without disrupting any other features. • Reuse the gallery’s existing data source; no backend changes should be necessary beyond exposing each file’s size to the UI layer. • Make the sort state persist while the user remains in the session, resetting only on full app reload. • Update any helper text or tooltips so the new option is clear to end-users (no extra copywriting—just match the style already in place). I’ll provide the full source, build instructions, and a quick walkthrough of the current sorting logic. Deliver the updated code, concise change notes, and a short screen-capture showing the feature in action. If you can keep the code readable and follow the formatting conventions already in the project, that will make merging straightforward.