Fixed temporary sorting in #show, several fixes