If one is confronted with a situation of needing to recite Asher Yatzar and bracha achrona, for example one finished eating and before reciting the bracha achrona went to the bathroom, one should recite the Asher Yatzar first. However, if it is Asher Yatzar and Birchas Hamazon, then Birchas Hamazon should be said first.