Obviously we don't want this, because then the sorting doesn't persist. Not to mention it's a profligate waste, rendering that many times for no reason..
Fixed (sort of), by having MynLibrary remember the last sort key and direction. So it still re-renders a lot, but it doesn't re-sort on every re-render now.
Obviously we don't want this, because then the sorting doesn't persist. Not to mention it's a profligate waste, rendering that many times for no reason..