Section 6. The prevailing party in a real action or in replevin shall recover costs irrespective of the amount of damages recovered.