Fix for history tab item sorting