If all the claims against the property covered by the lien are ascertained at the time of ordering the sale, the court may order the officer to pay over and distribute the proceeds of the sale, after deducting all lawful charges and expenses, to and among the several creditors to the amount of their respective debts, if there is sufficient therefor, and if there is not sufficient, then to divide and distribute such proceeds among the creditors in proportion to the amount due to each of them.
S.C. Code § 29-5-290