Sort by hearts (ascending)
Sort by hearts (descending)
Sort by display name (ascending)
Sort by display name (descending)
Simple!
There are also customizable keys you can use to cycle through the sort options (default Up Arrow and Down Arrow).
Technical
Requires SMAPI, uses Harmony.
Compatible with Mod Updater for automatic updates.
Code is at https://github.com/aedenthorn/StardewValleyMods.
If you want to complain or ask for help or help me test my mods, you can visit my Discord server.
A list of all my mods for Stardew Valley is available at https://www.nexusmods.com/stardewvalley/articles/895.