src/sap.ui.core/src/sap/ui/thirdparty/RequestRecorder.js
function(mHarFileContent) {
			var aEntries;
			if (!mHarFileContent.log.entries || !mHarFileContent.log.entries.length) {
				this.oLog.info(sModuleName + " - Empty entries array or the provided har file is empty.");
				aEntries = [];
			} else {
				// Add start and end timestamps to determine the request and response order.
				aEntries = mHarFileContent.log.entries;
				for (var i = 0; i < aEntries.length; i++) {
					aEntries[i]._timestampStarted = new Date(aEntries[i].startedDateTime).getTime();
					aEntries[i]._timestampFinished = aEntries[i]._timestampStarted + aEntries[i].time;
					aEntries[i]._initialOrder = i;
				}

				// Sort by response first, then by request to ensure the correct order.
				this.prepareEntriesOrder(aEntries, "_timestampFinished");
				this.prepareEntriesOrder(aEntries, "_timestampStarted");

				// Build a map with the sorted entries in the correct custom groups and by URL groups.
				mHarFileContent._groupedEntries = {};
				for (var j = 0; j < aEntries.length; j++) {
					this.addEntryToMapping(mHarFileContent, aEntries, j);
				}
			}

			mHarFileContent.log.entries = aEntries;
			return mHarFileContent;
		}
function(mHarFileContent) {
			var aEntries;
			if (!mHarFileContent.log.entries || !mHarFileContent.log.entries.length) {
				this.oLog.info(sModuleName + " - Empty entries array or the provided har file is empty.");
				aEntries = [];
			} else {
				// Add start and end timestamps to determine the request and response order.
				aEntries = mHarFileContent.log.entries;
				for (var i = 0; i < aEntries.length; i++) {
					aEntries[i]._timestampStarted = new Date(aEntries[i].startedDateTime).getTime();
					aEntries[i]._timestampFinished = aEntries[i]._timestampStarted + aEntries[i].time;
					aEntries[i]._initialOrder = i;
				}

				// Sort by response first, then by request to ensure the correct order.
				this.prepareEntriesOrder(aEntries, "_timestampFinished");
				this.prepareEntriesOrder(aEntries, "_timestampStarted");

				// Build a map with the sorted entries in the correct custom groups and by URL groups.
				mHarFileContent._groupedEntries = {};
				for (var j = 0; j < aEntries.length; j++) {
					this.addEntryToMapping(mHarFileContent, aEntries, j);
				}
			}

			mHarFileContent.log.entries = aEntries;
			return mHarFileContent;
		}
function ( mHarFileContent ) { var aEntries ; if ( ! mHarFileContent . log . entries || ! mHarFileContent . log . entries . length ) { this . oLog . info ( sModuleName + " - Empty entries array or the provided har file is empty." ) ; aEntries = [ ] ; } else { // Add start and end timestamps to determine the request and response order. aEntries = mHarFileContent . log . entries ; for ( var i = 0 ; i < aEntries . length ; i ++ ) { aEntries [ i ] . _timestampStarted = new Date ( aEntries [ i ] . startedDateTime ) . getTime ( ) ; aEntries [ i ] . _timestampFinished = aEntries [ i ] . _timestampStarted + aEntries [ i ] . time ; aEntries [ i ] . _initialOrder = i ; } // Sort by response first, then by request to ensure the correct order. this . prepareEntriesOrder ( aEntries , "_timestampFinished" ) ; this . prepareEntriesOrder ( aEntries , "_timestampStarted" ) ; // Build a map with the sorted entries in the correct custom groups and by URL groups. mHarFileContent . _groupedEntries = { } ; for ( var j = 0 ; j < aEntries . length ; j ++ ) { this . addEntryToMapping ( mHarFileContent , aEntries , j ) ; } } mHarFileContent . log . entries = aEntries ; return mHarFileContent ; }
Sorts the entries of a har file by response and request order. After the entries are sorted, the function builds
a map of the entries with the assigned custom groups and url groups.

@param {object} mHarFileContent The loaded map from the har file.
@returns {object} Prepared Har content with sorted entries and all the mappings (URL, Groups).
Sorts the entries of a har file by response and request order . After the entries are sorted the function builds a map of the entries with the assigned custom groups and url groups .