Fix Bug 2296: Newly Created Ns should come first in NG-UI

	- Sorted the list using created Date in descending order
        - Incorrect Information in "Expires in " section of Admin user :
	  Changed it to N/A
	- VIM Resource Overview: RAM Value should be rounded off :
	  Rounded off the value to 2 decimal points
	- Fixed the key issue in topology

Change-Id: I634aee0b4e4540386c5108232746f56959bcc838
Signed-off-by: SANDHYA.JS <sandhya.j@tataelxsi.co.in>
diff --git a/src/services/SharedService.ts b/src/services/SharedService.ts
index 8abe1d2..f80eb7c 100644
--- a/src/services/SharedService.ts
+++ b/src/services/SharedService.ts
@@ -464,6 +464,19 @@
         }));
     }
 
+    /** Sorting the list based on date @public */
+    public compareFunction = (dir: number, a: string, b: string): number => {
+        const first: number = new Date(a).getTime();
+        const second: number = new Date(b).getTime();
+        if (first < second) {
+            return -1 * dir;
+        }
+        if (first > second) {
+            return dir;
+        }
+        return 0;
+    };
+
     /** Method to validate file extension and size @private */
     private vaildataFileInfo(fileInfo: File, fileType: string): boolean {
         const extension: string = fileInfo.name.substring(fileInfo.name.lastIndexOf('.') + 1);