]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/Technique.js
add tech index
[alttp.git] / resources / js / helpers / Technique.js
index ea60cc71653d91c50887050af7843e671dfe2647..7ec22d3b90e01df1aa9b3918643d37f9200829ff 100644 (file)
@@ -10,6 +10,9 @@ export const getTranslation = (tech, prop, lang) => {
        return tech[prop];
 };
 
+export const compareTranslation = (prop, lang) => (a, b) =>
+       getTranslation(a, prop, lang).localeCompare(getTranslation(b, prop, lang));
+
 export default {
        getTranslation,
 };