[go: up one dir, main page]

CN110990684A - Method and device for sorting webpage list data - Google Patents

Method and device for sorting webpage list data Download PDF

Info

Publication number
CN110990684A
CN110990684A CN201811157675.1A CN201811157675A CN110990684A CN 110990684 A CN110990684 A CN 110990684A CN 201811157675 A CN201811157675 A CN 201811157675A CN 110990684 A CN110990684 A CN 110990684A
Authority
CN
China
Prior art keywords
sorting
condition
list data
weight
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811157675.1A
Other languages
Chinese (zh)
Inventor
孙倩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201811157675.1A priority Critical patent/CN110990684A/en
Publication of CN110990684A publication Critical patent/CN110990684A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for sorting webpage list data, relates to the technical field of data processing, and mainly aims to solve the problem of low sorting efficiency in the process of sorting the list data in a webpage in the prior art. The method of the invention comprises the following steps: when a sorting request is received, obtaining sorting information, wherein the sorting information comprises sorting conditions and sorting condition weights; and sequencing the webpage list data according to the sequencing total score of the webpage list data, wherein the sequencing total score of the webpage list data is obtained by calculation according to the sequencing condition and the sequencing condition weight. The method and the device are used for sequencing the list data in the webpage.

Description

Method and device for sorting webpage list data
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for sorting webpage list data.
Background
Generally, in order to realize fast search of data, when a user queries data in a list, the data in the list is generally sorted by using a sorting condition selected by the user, so as to provide support for subsequent analysis. The sorting condition is carried out according to a rule or dimension selected by a user. For example, by being in list data of exposure amounts in various media of a certain advertisement, the data in the list may be subjected to a sorting operation according to the exposure amounts.
At present, when a user needs to sort list data in a webpage, the user performs sorting operation based on a single sorting condition, and when the user needs to perform sorting operation based on a plurality of sorting conditions on the list data in the webpage, the user needs to export the list data in the webpage and sort the exported data through office software such as Excel. However, in practical applications, this method needs to first export list data from a web page, and then perform sorting operation using relevant office software after the export operation, and the sorting process is cumbersome and takes much time, thereby resulting in low efficiency of sorting list data in the existing web page.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for sorting web page list data, and mainly aims to solve the problem of low efficiency in the process of sorting the list data in a web page in the prior art, and improve the sorting efficiency.
In order to solve the above technical problem, in a first aspect, the present invention provides a method for sorting web page list data, where the method includes:
when a sorting request is received, obtaining sorting information, wherein the sorting information comprises sorting conditions and sorting condition weights;
and sequencing the webpage list data according to the sequencing total score of the webpage list data, wherein the sequencing total score of the webpage list data is obtained by calculation according to the sequencing condition and the sequencing condition weight.
Optionally, before the sorting the web page list data according to the sorted total score of the web page list data, the method further includes:
and calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
Optionally, before the obtaining the sorting information, the method further includes:
setting a weighted sorting trigger component, wherein the trigger component is used for generating the sorting request when being operated; and/or
And setting a sorting condition, wherein the sorting condition is used for sorting the dimension and the index of the list data in the webpage.
Optionally, the sorting condition is multiple, and before sorting the web page list data according to the sorted total score of the web page list data, the method further includes:
determining the weight of each corresponding sorting condition according to the receiving sequence of the sorting conditions, wherein the receiving sequence is the sequence of each sorting condition when a plurality of sorting conditions are received; or,
when a weight setting instruction is received, setting a corresponding weight for each sorting condition according to the weight setting instruction; or,
and when a weight adjusting instruction is received, determining the weight of the sorting condition corresponding to each sorting condition according to the weight adjusting instruction.
Optionally, the sorting the web page list data according to the sorted total score of the web page list data includes:
according to the sorting total score of the webpage list data, the webpage list data are sorted in an ascending order or in a descending order; and/or the presence of a gas in the gas,
when the situation that the total sorting phases of a plurality of webpage list data are the same is determined, the priority of the sorting condition is obtained, and the priority of the sorting condition is used for determining the priority of the sorting condition;
and selecting the sorting condition with the highest priority from the sorting conditions, and sorting the data of the plurality of webpage lists with the same sorting total score.
Optionally, the calculating a total ranking score of each web page list data according to the ranking condition and the ranking condition weight includes:
determining the weight of the sorting condition corresponding to each sorting condition;
calculating the ranking score of the list data corresponding to each ranking condition according to the ranking condition weight corresponding to each ranking condition and the specific value of the web page list data corresponding to each ranking condition;
and calculating the total sorting score corresponding to the webpage list data according to the sorting score of each sorting condition in the list data.
In a second aspect, the present invention further provides a device for sorting web page list data, where the device includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring sorting information when a sorting request is received, and the sorting information comprises sorting conditions and sorting condition weights;
and the sorting unit is used for sorting the webpage list data according to the sorting total score of the webpage list data, and the sorting total score of the webpage list data is obtained by calculation according to the sorting condition and the sorting condition weight.
Optionally, the apparatus further comprises:
and the calculating unit is used for calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
Optionally, the apparatus further comprises:
a first setting unit, configured to set a weighted sorting trigger component, where the trigger component is configured to generate the sorting request when operated;
and the second setting unit is used for setting a sorting condition, and the sorting condition is used for arranging the dimensionality and the index of the list data in the webpage.
Optionally, the sorting condition is multiple, and the apparatus further includes:
a determining unit, configured to determine, according to a receiving order of the sorting conditions, each weight corresponding to the sorting conditions, where the receiving order is a sequence of each sorting condition when multiple sorting conditions are received;
the third setting unit is used for setting corresponding weight for each sorting condition according to the weight setting instruction when receiving the weight setting instruction;
and the fourth setting unit is used for determining the weight of the sorting condition corresponding to each sorting condition according to the weight adjusting instruction when the weight adjusting instruction is received.
Optionally, the sorting unit includes:
the arrangement module is used for arranging the webpage list data in an ascending order or in a descending order according to the total sorting score of the webpage list data;
the acquisition module is used for acquiring the priority of the sorting condition when the situation that the sorting total phases of a plurality of webpage list data are the same is determined, wherein the priority of the sorting condition is used for determining the priority of the sorting condition;
and the sorting module is used for selecting the sorting condition with the highest priority from the sorting conditions and sorting the plurality of webpage list data with the same sorting total score.
Optionally, the computing unit includes:
the determining module is used for determining the weight of the sorting condition corresponding to each sorting condition;
the first calculation module is used for calculating the ranking score of the list data corresponding to each ranking condition according to the ranking condition weight corresponding to each ranking condition and the specific value of the web page list data corresponding to each ranking condition;
and the second calculation module is used for calculating the total sorting score corresponding to the webpage list data according to the sorting score of each sorting condition in the list data.
In order to achieve the above object, according to a third aspect of the present invention, a storage medium is provided, where the storage medium includes a stored program, and when the program runs, a device on which the storage medium is located is controlled to execute the above method for sorting web page list data.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided a processor for executing a program, wherein the program executes the above method for sorting web page list data.
By means of the technical scheme, the method and the device for sorting the webpage list data have the problem that efficiency is low in the process of sorting the webpage list data in the prior art, and the sorting information is obtained when the sorting request is received. And then, sequencing the webpage list data according to the sequencing total score of the webpage list data, thereby realizing the sequencing function of the webpage list data.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for sorting web page list data according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another method for sorting web page list data according to an embodiment of the present invention;
fig. 3 is a block diagram illustrating a sorting apparatus for web page list data according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another apparatus for sorting web page list data according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to solve the problem of low sorting efficiency in the process of sorting list data in a web page in the prior art, an embodiment of the present invention provides a method for sorting web page list data, as shown in fig. 1, the method includes:
101. when a sort request is received, sort information is obtained.
The sorting information includes sorting conditions and sorting condition weights.
In the embodiment of the present invention, the sorting condition may be set by a user, where any index of the list data or a corresponding dimension may be included in the sorting condition. Here, the number and the type of the indexes or dimensions included in the sorting condition are not specifically limited, and may be determined according to the data content actually included in the list data. And, the sorting condition weight can be understood as a priority for determining each sorting condition during the sorting operation, and the sorting condition weight can be set according to the requirement of the user. Further, the order of the list data sorted based on the total sorting score may be understood as an order in which the list data is sorted under a certain sorting condition, for example, an ascending order or a descending order of the list data under a certain sorting condition.
In addition, in this step, the manner of acquiring the sorting information may be acquired according to a sorting instruction issued by the user, or of course, may also be acquired according to a preset and stored at a predetermined position, and a specific execution manner is not limited herein and may be selected as needed.
In addition, the method for sorting web page list data according to the embodiment of the present invention can implement a composite sorting function under various sorting conditions for list data, and therefore, when a plurality of sorting conditions exist in the sorting information, the order of the sorting conditions needs to be determined, specifically, the sorting order of the sorting conditions can be determined by the weight of the sorting conditions, a sorting condition with a higher priority can be determined as a sorting order with a higher priority, and a sorting condition with a lower priority can be determined as a sorting order with a lower priority.
102. And sequencing the webpage list data according to the sequencing total score of the webpage list data.
And the total ranking score of the webpage list data is obtained by calculation according to the ranking condition and the weight of the ranking condition.
After the sorting information for sorting the web page list data is obtained in the foregoing step 101, calculation may be performed based on the sorting conditions therein, the weights of each sorting condition, and the actual data values of the corresponding sorting conditions, so as to obtain the corresponding total sorting score. Meanwhile, after the corresponding total sorting score of each sorting condition is determined, the sequence of sorting can be determined, wherein ascending or descending sorting can be performed, and then the sorting of the webpage list data based on the ascending or descending sorting of the total sorting score is realized.
The method for sorting the webpage list data, provided by the embodiment of the invention, has the problem of low efficiency in the process of sorting the webpage list data in the prior art, and the sorting information is obtained when the sorting request is received. And then, sequencing the webpage list data according to the sequencing total score of the webpage list data, thereby realizing the sequencing function of the webpage list data.
Further, as a refinement and an extension of the embodiment shown in fig. 1, an embodiment of the present invention further provides another method for sorting web page list data, as shown in fig. 2, the specific steps include:
201. a weighted sorting trigger component is set.
Wherein the trigger component is configured to generate the ordering request when operated. Specifically, the trigger component may be any trigger component such as a click button, a selection key, a drag bar, or a selection frame. In the embodiment of the present invention, for convenience of description, the trigger component takes the right sorting button as an example.
Before sorting list data in a web page, firstly, a request for sorting, namely a sorting request sent by a user needs to be received, specifically, a weighted sorting button is set, when the button is triggered by the user, it is determined that the current user needs to perform weighted sorting operation, and then, the request for sorting is received.
By setting the weighted sorting triggering component, when a user needs to perform weighted sorting, the corresponding triggering component can be provided, and then the subsequent sorting operation of the list data of the web pages is performed, so that the method provided by the embodiment of the invention can be executed according to the triggering of the user, and the controllability of the sorting operation is ensured.
202. And setting a sorting condition.
The sorting condition is used for arranging the dimension and the index of the list data in the webpage.
When the sorting operation is performed, since the sorting condition determines how to perform the sorting subsequently, before the sorting operation is obtained, different sorting conditions need to be added in advance before the sorting according to the method described in this step, so that a subsequent user can select the sorting condition when performing the sorting. Specifically, the adding mode of the sorting condition may be uniformly added to a preset position before sorting, and the sorting condition is selected from the position when the sorting condition selected by the user is received, or the adding of the sorting condition may be performed before sorting each time by adding a preset custom function, where the adding mode and the selecting time are not specifically limited, and may be selected according to actual conditions.
203. When a sort request is received, sort information is obtained.
The sorting information comprises sorting conditions and sorting condition weights.
Specifically, in the embodiment of the present invention, a specific manner of acquiring the ranking information may be: when the user triggers the weighted sorting button set in the foregoing step 201, a window may be popped up to the user, where the window includes related options such as sorting conditions required for sorting, and after the user finishes selecting in the popup window, corresponding sorting information may be generated, and then the sorting information generated by the current user is received, thereby implementing acquisition of the sorting information. Of course, in the embodiment of the present invention, the method for acquiring the ranking information includes, but is not limited to, the above method, and a corresponding acquisition mode may also be selected as needed.
204. And calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
Specifically, the step may include: first, the weight of the sorting condition corresponding to each sorting condition is determined. Then, according to the ranking condition weight corresponding to each ranking condition and the specific value of the web page list data corresponding to each ranking condition, the ranking score of the list data corresponding to each ranking condition is calculated. And finally, calculating the total sorting score corresponding to the webpage list data according to the sorting score of each sorting condition in the list data.
Of course, in the embodiment of the present invention, when the number of the sorting conditions is one, the specific value of each piece of web page list data under the sorting conditions may be determined through the sorting conditions, and the sorting score may be obtained by calculating according to the specific value and the sorting weight of the sorting conditions, and then the web page list data may be sorted based on the sorting score.
For example, when the specific value of the existing web page list data under the sorting condition a is 1000 and the sorting weight is 0.2, the actual sorting score of the web page list data can be calculated to be 200 according to the method described in this step.
It should be noted that before calculating the total ranking score, the number of ranking conditions may be determined, and when there are a plurality of ranking conditions, the weights based on each ranking condition may be different, so in this step, the weights of the plurality of ranking conditions also need to be determined, where the determining process may be performed according to the following two aspects;
in a first aspect, a weight of each corresponding sorting condition is determined according to a receiving order of the sorting conditions. The receiving sequence is the sequence of each sequencing condition when the plurality of sequencing conditions are received.
In the embodiment of the present invention, because different priorities exist among the sorting conditions, the sorting weight of each sorting condition needs to be determined before sorting, specifically, when a user selects a sorting condition, an important sorting condition is preferentially selected, the sorting weight is larger, a sorting condition with a lower importance degree is ranked in a later selection order, and the sorting weight is smaller, so that a precedence order exists when receiving the sorting condition, and the selected precedence order can embody the weight of the sorting condition, and therefore, in this step, the priority of each sorting condition can be determined according to the precedence order of the sorting condition when receiving.
Therefore, the sorting condition weight corresponding to the sorting condition is determined according to the receiving sequence of the sorting condition, the process of setting the numerical value of the priority for each sorting condition and comparing the numerical values is not required to be executed, the determining process of the sorting condition weight can be simplified, the time required by the determining process is reduced, and the sorting efficiency is improved on the whole.
In the second aspect, when a weight setting instruction is received, a corresponding weight is set for each sorting condition according to the weight setting instruction; or when a weight adjusting instruction is received, determining the weight of the sorting condition corresponding to each sorting condition according to the weight adjusting instruction.
In the actual operation, there may be a case where the user selects the sorting condition by mistake, or a case where the weight of the sorting condition needs to be adjusted, so in the embodiment of the present invention, it may be determined whether a weight setting instruction issued by the user is received to set the sorting condition without setting the weight, or a weight adjusting instruction is received, so as to correspondingly adjust the weight of the determined sorting condition. Specifically, in this step, a weight adjustment button may be provided, and when a weight adjustment instruction is generated when triggered by a user, the priority between the selected sorting conditions is adjusted.
Therefore, by receiving the weight adjusting instruction and determining the sorting condition weight corresponding to the sorting condition according to the weight adjusting instruction or setting the sorting condition weight according to the weight setting instruction, the function of adjusting the determined sorting condition weight and setting the sorting condition without weight when the user needs to adjust the sorting condition weight can be ensured, and the control of sorting can be flexibly performed.
205. And sequencing the webpage list data according to the sequencing total score of the webpage list data.
And the total ranking score of the webpage list data is obtained by calculation according to the ranking condition and the weight of the ranking condition.
Specifically, the step may include: and arranging the webpage list data in an ascending order or in a descending order according to the sorting total score of the webpage list data.
In addition, since there may be two pieces of data having the same total rank in the ranking, here, when it is determined that there are a plurality of web page list data having the same total rank, it is also possible to acquire a ranking condition priority for determining a priority order of the ranking condition. Then, the sorting condition with the highest priority is selected from the sorting conditions, and the data of the plurality of web page lists with the same sorting total score are sorted.
Therefore, the webpage list data are arranged in an ascending order or a descending order according to the total sorting score of the webpage list data, and the obtained sorting result can be arranged in an ascending order or a descending order according to the requirement of a user. In addition, when the sorting total phases of a plurality of webpage list data are the same, the priority of the sorting condition can be obtained, and the webpage list data with the same sorting total phase can be sorted based on the priority, so that the influence of the sorting conditions with different priorities on the sorting can be reflected, and the accuracy of the sorting result is ensured.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a device for sorting web page list data, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes: an acquisition unit 31, and a sorting unit 32, wherein
The obtaining unit 31 may be configured to obtain, when a sorting request is received, sorting information, where the sorting information includes a sorting condition and a sorting condition weight.
The sorting unit 32 may be configured to sort the web page list data according to a total sorting score of the web page list data obtained by the sorting information obtained by the obtaining unit 31, where the total sorting score of the web page list data is obtained by calculation according to the sorting condition and the sorting condition weight.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention further provides a device for sorting web page list data, which is used to implement the method shown in fig. 2. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 4, the apparatus includes: an acquisition unit 41, and a sorting unit 42, wherein
The obtaining unit 41 may be configured to, when receiving a sorting request, obtain sorting information, where the sorting information includes a sorting condition and a sorting condition weight.
The sorting unit 42 may be configured to sort the web page list data according to a total sorting score of the web page list data obtained by the sorting information obtained by the obtaining unit 41, where the total sorting score of the web page list data is calculated according to the sorting condition and the sorting condition weight.
Further, the apparatus further comprises:
the calculating unit 43 may be configured to calculate a total ranking score of each piece of web page list data according to the ranking condition acquired by the acquiring unit 41 and the ranking condition weight, so that the ranking unit 42 performs ranking according to the total ranking score.
Further, the apparatus further comprises:
a first setting unit 44, configured to set a weighted sorting trigger component, where the trigger component is configured to generate the sorting request for the obtaining unit 41 to obtain when operated;
and a second setting unit 45, configured to set a sorting condition, where the sorting condition is used to arrange the dimensions and indexes of the list data in the web page.
Further, the sorting condition is multiple, and the apparatus further includes:
the determining unit 46 may be configured to determine, according to a receiving order of the sorting conditions, each weight corresponding to the sorting conditions, so that the calculating unit 42 performs calculation according to the weight of each sorting condition, where the receiving order is a sequence of each sorting condition when receiving multiple sorting conditions;
a third setting unit 47, configured to, when receiving the weight setting instruction, set a corresponding weight for each sorting condition according to the weight setting instruction, so that the calculating unit 42 performs calculation according to the weight of each sorting condition;
the fourth setting unit 48 may be configured to, when receiving the weight adjustment instruction, determine a weight of the sorting condition corresponding to each sorting condition according to the weight adjustment instruction, so that the calculating unit 42 performs calculation according to the weight of each sorting condition.
Further, the sorting unit 42 includes:
the arranging module 421 may be configured to arrange the web page list data in an ascending order or in a descending order according to the total sorting score of the web page list data;
an obtaining module 422, configured to obtain a priority of a sorting condition when it is determined that there is a plurality of web page list data whose sorting total phases are the same, where the priority of the sorting condition is used to determine a priority of the sorting condition;
the sorting module 423 may be configured to select a sorting condition with the highest priority from the sorting conditions acquired by the acquiring module 422, and sort the multiple pieces of web page list data with the same total sorting score.
Further, the calculation unit 43 includes:
a determining module 431, configured to determine a ranking condition weight corresponding to each ranking condition;
a first calculating module 432, configured to calculate a ranking score of the list data corresponding to each ranking condition according to the ranking condition weight corresponding to each ranking condition determined by the determining module 431 and a specific value of the web page list data corresponding to each ranking condition;
the second calculating module 433 may be configured to calculate a total ranking score corresponding to the web page list data according to the ranking score of each ranking condition in the list data calculated by the first calculating module 432.
By means of the technical scheme, the embodiment of the invention provides a method and a device for sorting web page list data, and aims to solve the problem that the efficiency is low in the process of sorting the web page list data in the prior art. And then, sequencing the webpage list data according to the sequencing total score of the webpage list data, thereby realizing the sequencing function of the webpage list data.
Meanwhile, by setting the weighted sorting triggering component, when a user needs to perform weighted sorting, the corresponding triggering component can be provided, and then the subsequent sorting operation of the list data of the web pages is performed, so that the method provided by the embodiment of the invention can be executed according to the triggering of the user, and the controllability of the sorting operation is ensured. In addition, the sorting condition weight corresponding to the sorting condition is determined according to the receiving sequence of the sorting condition, and the process of setting the numerical value of the priority for each sorting condition and comparing the numerical values is not required to be executed, so that the determining process of the sorting condition weight can be simplified, the time required by the determining process is reduced, and the sorting efficiency is improved on the whole. And by receiving the weight adjusting instruction and determining the sorting condition weight corresponding to the sorting condition according to the weight adjusting instruction or setting the sorting weight of the sorting condition according to the weight setting instruction, the function of adjusting the determined sorting condition weight and setting the sorting condition without weight when the user needs to adjust the sorting condition weight can be ensured, and the control of sorting can be flexibly performed. Furthermore, the webpage list data are arranged in an ascending order or in a descending order according to the total sorting score of the webpage list data, so that the obtained sorting result can be arranged in an ascending order or a descending order according to the requirement of a user. In addition, when the sorting total phases of a plurality of webpage list data are the same, the priority of the sorting condition can be obtained, and the webpage list data with the same sorting total phase can be sorted based on the priority, so that the influence of the sorting conditions with different priorities on the sorting can be reflected, and the accuracy of the sorting result is ensured.
The device for sorting the webpage list data comprises a processor and a memory, wherein the acquisition unit, the sorting unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, the problem of low efficiency in the prior art of sequencing list data in the webpage is solved by adjusting kernel parameters, and the sequencing efficiency is improved.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium, on which a program is stored, and the program implements a method for sorting web page list data when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes a sorting method of webpage list data during running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps: when a sorting request is received, obtaining sorting information, wherein the sorting information comprises sorting conditions and sorting condition weights; and sequencing the webpage list data according to the sequencing total score of the webpage list data, wherein the sequencing total score of the webpage list data is obtained by calculation according to the sequencing condition and the sequencing condition weight.
Further, before the sorting the web page list data according to the sorted total score of the web page list data, the method further includes:
and calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
Further, before the obtaining the ranking information, the method further includes:
setting a weighted sorting trigger component, wherein the trigger component is used for generating the sorting request when being operated; and/or
And setting a sorting condition, wherein the sorting condition is used for sorting the dimension and the index of the list data in the webpage.
Further, the sorting condition is multiple, and before sorting the web page list data according to the sorting total score of the web page list data, the method further includes:
determining the weight of each corresponding sorting condition according to the receiving sequence of the sorting conditions, wherein the receiving sequence is the sequence of each sorting condition when a plurality of sorting conditions are received; or,
when a weight setting instruction is received, setting a corresponding weight for each sorting condition according to the weight setting instruction; or,
and when a weight adjusting instruction is received, determining the weight of the sorting condition corresponding to each sorting condition according to the weight adjusting instruction.
Further, the sorting the web page list data according to the sorted total score of the web page list data includes:
according to the sorting total score of the webpage list data, the webpage list data are sorted in an ascending order or in a descending order; and/or the presence of a gas in the gas,
when the situation that the total sorting phases of a plurality of webpage list data are the same is determined, the priority of the sorting condition is obtained, and the priority of the sorting condition is used for determining the priority of the sorting condition;
and selecting the sorting condition with the highest priority from the sorting conditions, and sorting the data of the plurality of webpage lists with the same sorting total score.
Further, the calculating a total ranking score of each web page list data according to the ranking condition and the ranking condition weight includes:
determining the weight of the sorting condition corresponding to each sorting condition;
calculating the ranking score of the list data corresponding to each ranking condition according to the ranking condition weight corresponding to each ranking condition and the specific value of the web page list data corresponding to each ranking condition;
and calculating the total sorting score corresponding to the webpage list data according to the sorting score of each sorting condition in the list data.
The device in the embodiment of the invention can be a server, a PC, a PAD, a mobile phone and the like.
An embodiment of the present invention further provides a computer program product, which, when executed on a data processing apparatus, is adapted to execute a program that initializes the following method steps: when a sorting request is received, obtaining sorting information, wherein the sorting information comprises sorting conditions and sorting condition weights; and sequencing the webpage list data according to the sequencing total score of the webpage list data, wherein the sequencing total score of the webpage list data is obtained by calculation according to the sequencing condition and the sequencing condition weight.
Further, before the sorting the web page list data according to the sorted total score of the web page list data, the method further includes:
and calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
Further, before the obtaining the ranking information, the method further includes:
setting a weighted sorting trigger component, wherein the trigger component is used for generating the sorting request when being operated; and/or
And setting a sorting condition, wherein the sorting condition is used for sorting the dimension and the index of the list data in the webpage.
Further, the sorting condition is multiple, and before sorting the web page list data according to the sorting total score of the web page list data, the method further includes:
determining the weight of each corresponding sorting condition according to the receiving sequence of the sorting conditions, wherein the receiving sequence is the sequence of each sorting condition when a plurality of sorting conditions are received; or,
when a weight setting instruction is received, setting a corresponding weight for each sorting condition according to the weight setting instruction; or,
and when a weight adjusting instruction is received, determining the weight of the sorting condition corresponding to each sorting condition according to the weight adjusting instruction.
Further, the sorting the web page list data according to the sorted total score of the web page list data includes:
according to the sorting total score of the webpage list data, the webpage list data are sorted in an ascending order or in a descending order; and/or the presence of a gas in the gas,
when the situation that the total sorting phases of a plurality of webpage list data are the same is determined, the priority of the sorting condition is obtained, and the priority of the sorting condition is used for determining the priority of the sorting condition;
and selecting the sorting condition with the highest priority from the sorting conditions, and sorting the data of the plurality of webpage lists with the same sorting total score.
Further, the calculating a total ranking score of each web page list data according to the ranking condition and the ranking condition weight includes:
determining the weight of the sorting condition corresponding to each sorting condition;
calculating the ranking score of the list data corresponding to each ranking condition according to the ranking condition weight corresponding to each ranking condition and the specific value of the web page list data corresponding to each ranking condition;
and calculating the total sorting score corresponding to the webpage list data according to the sorting score of each sorting condition in the list data.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for sorting web page list data is characterized by comprising the following steps:
when a sorting request is received, obtaining sorting information, wherein the sorting information comprises sorting conditions and sorting condition weights;
and sequencing the webpage list data according to the sequencing total score of the webpage list data, wherein the sequencing total score of the webpage list data is obtained by calculation according to the sequencing condition and the sequencing condition weight.
2. The method of claim 1, wherein prior to said sorting the web page listing data according to the sorted summary score of the web page listing data, the method further comprises:
and calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
3. The method of claim 2, wherein prior to said obtaining ordering information, the method further comprises:
setting a weighted sorting trigger component, wherein the trigger component is used for generating the sorting request when being operated; and/or
And setting a sorting condition, wherein the sorting condition is used for sorting the dimension and the index of the list data in the webpage.
4. The method according to claim 3, wherein the sorting condition is plural, and before the sorting of the web page list data according to the sorting total score of the web page list data, the method further comprises:
determining the weight of each corresponding sorting condition according to the receiving sequence of the sorting conditions, wherein the receiving sequence is the sequence of each sorting condition when a plurality of sorting conditions are received; or,
when a weight setting instruction is received, setting a corresponding weight for each sorting condition according to the weight setting instruction; or,
and when a weight adjusting instruction is received, determining the weight of the sorting condition corresponding to each sorting condition according to the weight adjusting instruction.
5. The method of claim 4, wherein the sorting the web page list data according to the sorted summary score of the web page list data comprises:
according to the sorting total score of the webpage list data, the webpage list data are sorted in an ascending order or in a descending order; and/or the presence of a gas in the gas,
when the situation that the total sorting phases of a plurality of webpage list data are the same is determined, the priority of the sorting condition is obtained, and the priority of the sorting condition is used for determining the priority of the sorting condition;
and selecting the sorting condition with the highest priority from the sorting conditions, and sorting the data of the plurality of webpage lists with the same sorting total score.
6. The method according to any one of claims 2-5, wherein the calculating the total ranking score of each webpage list data according to the ranking condition and the ranking condition weight comprises:
determining the weight of the sorting condition corresponding to each sorting condition;
calculating the ranking score of the list data corresponding to each ranking condition according to the ranking condition weight corresponding to each ranking condition and the specific value of the web page list data corresponding to each ranking condition;
and calculating the total sorting score corresponding to the webpage list data according to the sorting score of each sorting condition in the list data.
7. An apparatus for sorting web page list data, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring sorting information when a sorting request is received, and the sorting information comprises sorting conditions and sorting condition weights;
and the sorting unit is used for sorting the webpage list data according to the sorting total score of the webpage list data, and the sorting total score of the webpage list data is obtained by calculation according to the sorting condition and the sorting condition weight.
8. The apparatus of claim 7, further comprising:
and the calculating unit is used for calculating the total sorting score of each webpage list data according to the sorting condition and the sorting condition weight.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the method for sorting web page list data according to any one of claims 1 to 6.
10. A processor, for running a program, wherein the program runs the method for sorting web page list data according to any one of claims 1 to 6.
CN201811157675.1A 2018-09-30 2018-09-30 Method and device for sorting webpage list data Pending CN110990684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811157675.1A CN110990684A (en) 2018-09-30 2018-09-30 Method and device for sorting webpage list data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811157675.1A CN110990684A (en) 2018-09-30 2018-09-30 Method and device for sorting webpage list data

Publications (1)

Publication Number Publication Date
CN110990684A true CN110990684A (en) 2020-04-10

Family

ID=70059759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811157675.1A Pending CN110990684A (en) 2018-09-30 2018-09-30 Method and device for sorting webpage list data

Country Status (1)

Country Link
CN (1) CN110990684A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082593A1 (en) * 2008-09-24 2010-04-01 Yahoo! Inc. System and method for ranking search results using social information
CN101739461A (en) * 2009-12-24 2010-06-16 丘雷 Multidimensional sequencing method set by user
CN103108083A (en) * 2013-01-24 2013-05-15 广东欧珀移动通信有限公司 Method and system of ranking file lists of mobile terminal
CN105761106A (en) * 2016-02-07 2016-07-13 徐璇炫 Object ordering method based on user setting and device thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100082593A1 (en) * 2008-09-24 2010-04-01 Yahoo! Inc. System and method for ranking search results using social information
CN101739461A (en) * 2009-12-24 2010-06-16 丘雷 Multidimensional sequencing method set by user
CN103108083A (en) * 2013-01-24 2013-05-15 广东欧珀移动通信有限公司 Method and system of ranking file lists of mobile terminal
CN105761106A (en) * 2016-02-07 2016-07-13 徐璇炫 Object ordering method based on user setting and device thereof

Similar Documents

Publication Publication Date Title
CN106355391B (en) Service processing method and device
JP6779231B2 (en) Data processing method and system
CN114418568A (en) Payment mode recommendation method, device and equipment
CN106487603B (en) Response testing method and device
CN113641896A (en) Model training and recommendation probability prediction method and device
US9264502B2 (en) Download resource recommendation method, system and storage medium
JP2014515514A (en) Method and apparatus for providing suggested words
CN108255886B (en) Evaluation method and device of recommendation system
CN111797312B (en) Model training method and device
CN110928636A (en) Virtual machine live migration method, device and equipment
CN107122303B (en) Test method and device
CN110399287B (en) Coverage rate collection method and coverage rate collection device for application test
CN112905451A (en) Automatic testing method and device for application program
CN114154064B (en) Commodity keyword optimization method and device
CN110674387B (en) Method, apparatus and computer storage medium for data search
CN106610989B (en) Search keyword clustering method and device
CN112564996A (en) Pressure test flow scheduling method, pressure test flow control device and computer readable medium
CN108984572B (en) Website information pushing method and device
CN111125157B (en) Query data processing method and device, storage medium and processor
CN111783453B (en) Text emotion information processing method and device
CN110990684A (en) Method and device for sorting webpage list data
CN109918595B (en) Method and device for acquiring public module
CN106649374B (en) Navigation tag sequencing method and device
CN110019771B (en) Text processing method and device
CN110705229A (en) Editing class list arrangement recommendation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200410