Where a suit is dismissed from any court for want of jurisdiction or because it has not been regularly transferred from an inferior to a superior court, the costs shall be adjudged against the party attempting to institute or bring up the cause.
T.C.A. § 20-12-112