Store sort macros on model classes instead typemaps. We don't want the macros to be reset on BD.store.reset()