Fixed joblines query sorting. Added in additional fields. Added region to bodyshop.
This commit is contained in:
@@ -5,6 +5,8 @@ export default function CurrencyFormatter(props) {
|
||||
return (
|
||||
<NumberFormat
|
||||
thousandSeparator={true}
|
||||
decimalScale={2}
|
||||
fixedDecimalScale={true}
|
||||
prefix={"$"}
|
||||
value={props.children}
|
||||
displayType={"text"}
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
export function alphaSort(a, b) {
|
||||
if (a > b) {
|
||||
return false;
|
||||
}
|
||||
if (b > a) {
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
let A;
|
||||
let B;
|
||||
A = a ? a.toLowerCase() : "";
|
||||
|
||||
B = b ? b.toLowerCase() : "";
|
||||
|
||||
if (A < B)
|
||||
//sort string ascending
|
||||
return -1;
|
||||
if (A > B) return 1;
|
||||
return 0; //default return value (no sorting)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user