function isBtcAddress(str) {
		  (0, _assertString.default)(str);
		  return bech32.test(str) || base58.test(str);
		}
sort helper to sort array elements in ascending order

@param   {mixed} a - an item to compare
@param   {mixed} b - an item to compare
@returns {number} - comparison result