reorder triggered functions in bootstrap