arooly,
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<script>
function compare(c, d) {
var e = document.querySelectorAll(".items");
[].slice.call(document.querySelectorAll(".items .item"), 0).sort(function(a, b) {
a = a.querySelector(c).textContent;
b = b.querySelector(c).textContent;
return d ? b - a : a - b
}).forEach(function(a, b) {
e[b].appendChild(a)
})
};
</script>
</head>
<body>
<button onclick='compare(".parseDataPRGREEN")'>По возрастанию</button>
<button onclick='compare(".parseDataPRRED", true)'>По убыванию</button>
<div class="items" id="inventory_bot">
<div class="item" id="12932097827">
<a class="link-btn" href="https://ХХХ" target="_blank">O</a>
<div class="parse-btn parse-done">
<div class="parseDataPRGREEN">
-32.47
</div>
<div class="parseDataPRRED">
78.16
</div>
<div class="parse-data-price">
108.8$
</div>
</div>
</div>
</div>
<div class="items" id="inventory_bot">
<div class="item" id="12932097827">
<a class="link-btn" href="https://ХХХ" target="_blank">O</a>
<div class="parse-btn parse-done">
<div class="parseDataPRGREEN">
-41.47
</div>
<div class="parseDataPRRED">
49.16
</div>
<div class="parse-data-price">
108.8$
</div>
</div>
</div>
</div>
<div class="items" id="inventory_bot">
<div class="item" id="12932097827">
<a class="link-btn" href="https://ХХХ" target="_blank">O</a>
<div class="parse-btn parse-done">
<div class="parseDataPRGREEN">
-12.47
</div>
<div class="parseDataPRRED">
11.16
</div>
<div class="parse-data-price">
108.8$
</div>
</div>
</div>
</div>
</body>
</html>